#!/bin/bash
cd ui && rm -rf dist && npm install && npm run build && \
ssh root@120.25.106.247 'cd /opt/app/nginx/html/jeepayuser/ && ls -I MP* | rm -rf' && \
scp -r dist/* root@120.25.106.247:/opt/app/nginx/html/jeepayuser/ && \
cd .. && \
ssh root@120.25.106.247 'ls -al /opt/app/nginx/html/jeepayuser/'